
<div id="category-index">

    <div class="title">
        <a href="__APP__/Category/add/sid/<{$Think.get.sid}>" class="add">添加分类</a>
        <a href="__APP__/Section/index" class="parent">返回单元</a>
        <neq name="isshow" value="no">
            <a class="into" href="__APP__/Article/index/sid/<{$Think.get.sid}>/cid/">进入分类文章列表</a>
            <a class="delete" href="javascript:;">删除</a><a class="select" href="javascript:;">全选/反选</a>
        </neq>
    </div>

    <eq name="nobody" value="no">
            <div class="content">
                <div id="nodata"><div>本单元下暂无分类</div></div>
            </div>
            <div class="footer">
            </div>
        <else/>
            <div class="content">

                <div class="search">
                    <form action="__APP__/Category/index/sid/<{$Think.get.sid}>" method="post" class="select">
                        关键字 <input type="text" name="key" /> 按
                        <select name="search">
                            <option value="1">ID</option>
                            <option value="2">单元名</option>
                        </select>
                        <input type="submit" value="搜索" />
                    </form>
                </div>
                <form action="__APP__/Category/del/sid/<{$Think.get.sid}>" method="post" name="delete" class="delete">
                    <table>
                        <tr>
                            <th>ID</th><th>分类名</th><th>别名</th><th>发布</th><th>描述</th><th>排序</th><th>文章数</th><th>操作</th>
                        </tr>
                        <volist name="list" id="vo">
                                <tr>
                                    <td><{$vo['id']}></td>
                                    <td><a href="__APP__/Category/edit/sid/<{$Think.get.sid}>/cid/<{$vo['id']}>"><{$vo['name']}></a></td>
                                    <td><{$vo['alias']}></td>
                                    <if condition="$vo['published']" vlaue="1">
                                        <td>是</td>
                                        <else/>
                                        <td>否</td>
                                    </if>
                                    <td><{$vo['description']}></td>
                                    <td><{$vo['sort']}></td>
                                    <td><{$vo['article']|count}></td>
                                    <td><input type="checkbox" name="del[]" value="<{$vo['id']}>" /></td>
                                </tr>
                        </volist>
                    </table>
                </form>

            </div>
            <div class="footer">
                <{$show|default="暂无数据"}>
            </div>
    </eq>

</div>
<script type='text/javascript' src='../Public/js/category_index.js'></script>